﻿using System;

namespace KaroEngine.Exceptions
{
    public class InvalidMoveException : SystemException
    {
        private Move move;

        public short PositionFrom
        {
            get { return move.PositionFrom; }
        }

        public short PositionTo
        {
            get { return move.PositionTo; }
        }

        public short TilePositionToMove
        {
            get { return move.TilePositionToMove; }
        }
        
        public InvalidMoveException(string message)
                : base(message)
        {
        }

        public InvalidMoveException(string message, Move move)
                : base(message)
        {
            this.move = move;
        }
    }
}